/**
 * fileName: ActivitySettingServiceImpl.java
 * fileTime: 2011-6-16上午10:11:53
 */
package com.bf.xpdd.service.impl;

import java.util.List;

import com.bf.xpdd.domain.ActivitySettingBean;
import com.bf.xpdd.persistent.iface.DaoActivitySetting;
import com.bf.xpdd.service.ActivitySettingService;

/**
 * 活动模板服务实现类
 * 
 * @author linmu
 * 
 */
public class ActivitySettingServiceImpl implements ActivitySettingService
{

	/**
	 * 活动模板的DAO接口
	 */
	private DaoActivitySetting activitySetting;

	/**
	 * spring容器注入
	 * 
	 * @param activitySetting
	 */
	public void setActivitySetting(DaoActivitySetting activitySetting)
	{
		this.activitySetting = activitySetting;
	}

	@Override
	public List<ActivitySettingBean> queryAllActSetting(String nick)
	{
		return this.activitySetting.queryAllActSetting(nick);
	}

	@Override
	public ActivitySettingBean queryActSettingById(long id)
	{
		return this.activitySetting.queryActSettingById(id);
	}

	@Override
	public void addActSetting(ActivitySettingBean actSetting)
	{
		this.activitySetting.addActivitySetting(actSetting);
	}

	@Override
	public void delActSetting(ActivitySettingBean actSetting)
	{
		delActSettingById(actSetting.getId(), actSetting.getNick());
	}

	@Override
	public void delActSettingById(long id, String nick)
	{
		this.activitySetting.delActivitySetting(id, nick);
	}

	@Override
	public void modifyActSetting(ActivitySettingBean actSetting)
	{
		this.activitySetting.modifyActivitySetting(actSetting);
	}

	@Override
	public List<ActivitySettingBean> queryActSettingByIdList(List<Long> idList)
	{
		return this.activitySetting.queryActSettingByIdList(idList);
	}

	@Override
	public List<ActivitySettingBean> querySettingsByIsUsed(boolean isUsed, String nick)
	{
		return this.activitySetting.querySettingsByIsUsed(isUsed, nick);
	}

}
